<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<ul>
		  <li class="item">Item 1</li>
		  <li class="item">Item 2</li>
		  <li class="item">Item 3</li>
		  <li class="item">Item 4</li>
		  <li class="item">Item 5</li>
		</ul>
		
		<script>
		for (var i = 0; i < document.getElementsByTagName('li').length; i++) {
		      document.write("<li>Item " + (i+1) + "</li>");
		}
		</script>
	</body>
</html>
